package com.scau.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.scau.pojo.Admin;
import com.scau.service.Impl.AdminServiceImpl;


@RestController
@RequestMapping("/adminController")
public class AdminController{
	 @Autowired
	AdminServiceImpl adminService;
	@RequestMapping("/getAdminId")
	public int getAdmin() {
		return 1;
	}
	
	@RequestMapping("/queryAdmin")
	public List<Admin> queryAdmin() {
		List<Admin> result = adminService.getAllAdmin();
		return result;
	}

}
